package com.wql.config;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;

import org.springframework.core.annotation.Order;
import org.springframework.web.WebApplicationInitializer;

@Order(1)
public class CommonInitializer implements WebApplicationInitializer {
	@Override
	public void onStartup(ServletContext servletContext) throws ServletException {
//		AnnotationConfigWebApplicationContext mvcContext = new AnnotationConfigWebApplicationContext();
//		mvcContext.register(MvcConfig.class);
//		mvcContext.refresh();
//		ServletRegistration.Dynamic dispatcher = servletContext.addServlet("dispatcher", new DispatcherServlet(mvcContext));
//		dispatcher.setLoadOnStartup(1);
//		dispatcher.addMapping("/");
	}
}
